﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
using System.Data;
using DA;


namespace Businis
{
    public class tiepnhanhocsinh_BUS
    {

        tiepnhanhocsinh_DA tnhs = new tiepnhanhocsinh_DA();
        public List<HOCSINH> LayALL()
        {
            return tnhs.layall();
        }
        public object Laytheomalop(string ml)
        {
            return tnhs.Laytheomalop(ml);
        }
        public List<LOP> LTML()
        {
            return tnhs.LayTheoML();
        }
        public bool them_hs(string mahs, string tenhs, string email, bool gioitinh, DateTime ngaysinh, string diachi, string tenlop)
        {
            tnhs.tiepnhanhocsinh_add(mahs, tenhs, email, gioitinh, ngaysinh, diachi, tenlop);
            return true;
        }
        public bool KiemTraTuoi(int qd)
        {
            if (tnhs.KiemTraTuoi(qd) == true)
            {
                return true;
            }
            return false;
        }
        public bool KiemTraSiSo(int qd)
        {
            if (tnhs.KiemTraSiSo(qd) == true)
            {
                return true;
            }
            return false;
        }
        public bool ktrahocsinh(HOCSINH hs)
        {
            if (tnhs.ktrahocsinh(hs) == true)
            {
                return true;
            }
            return false;
        }
    }
}

